#include "verticaltoolbox.h"
#include "ui_verticaltoolbox.h"

#include "QtIconLoader/qticonloader.h"

VerticalToolbox::VerticalToolbox(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::VerticalToolbox)
{
    ui->setupUi(this);

    ui->pbAdd->setIcon(
                QtIconLoader::icon("list-add", QIcon()));
    ui->pbRemove->setIcon(
                    QtIconLoader::icon("list-remove", QIcon()));

    ui->pbClear->setIcon(
                    QtIconLoader::icon("edit-clear", QIcon()));

    connect(ui->pbAdd, SIGNAL(clicked()), this, SIGNAL(addClicked()));
    connect(ui->pbRemove, SIGNAL(clicked()), this, SIGNAL(delClicked()));
    connect(ui->pbClear, SIGNAL(clicked()), this, SIGNAL(clearClicked()));
}

VerticalToolbox::~VerticalToolbox()
{
    delete ui;
}
